import Vue from "vue";
import dayjs from "dayjs";

// {{ expression | filter}}
Vue.filter("date", (value, format = "YYYY-MM-DD HH:mm:ss") => {
  return dayjs(value).format(format);
});
